
Program: XCF Flavor

Bytes: XCF Flavor
Z80 XCF FLAVOR v1.5 (2024-02-06)
 Manuel Sainz de Baranda y Goi
https://zxe.io

This program checks the behavior
of the undocumented flags during
the CCF and SCF instructions and
detects the Z80 CPU type of your
ZX Spectrum.

  Case    Any  NEC   ST    HOST 
 Tested  Zilog NMOS CMOS   CPU  
(Q<>F)|A   YX   YX   YX   YX  YX
(0<>0)|0   00   00   00   00  00
(0<>1)|0   11   00   10   00  00
(1<>1)|0   00   00   00   00  00
(0<>0)|1   11   11   11   11  11
(0<>1)|1   11   11   11   11  11
(1<>1)|1   11   11   11   11  11
                         ccf scf

Result: NEC NMOS flavor